package com.syh.jn.scm.service.impl.downstream.finance;

import cn.redscarf.commons.wrapper.Wrapper;
import com.alibaba.dubbo.config.annotation.Service;
import com.syh.jn.scm.domain.downstream.repository.finance.DownBusinessAccountRecordRepository;
import com.syh.jn.scm.dto.downstream.finance.DownBusinessAccountRecordVo;
import com.syh.jn.scm.service.api.downstream.finance.DownBusinessAccountRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 下游应收应付记录
 */
@Service
@Transactional
public class DownBusinessAccountRecordServiceImpl implements DownBusinessAccountRecordService {

  @Autowired
  private DownBusinessAccountRecordRepository downBusinessAccountRecordRepository;

  @Override
  public List<DownBusinessAccountRecordVo> findListPage(Wrapper wrapper, Integer startRow, Integer count) {
    return downBusinessAccountRecordRepository.findListPageView(wrapper, startRow, count);
  }

  @Override
  public int getCount(Wrapper wrapper) {
    return this.downBusinessAccountRecordRepository.getCountView(wrapper);
  }
}
